//
//  topStrategyViewCell.m
//  HappilyLoan
//
//  Created by 纵情向前 on 2017/4/23.
//  Copyright © 2017年 zongqingxiangqian. All rights reserved.
//

#import "topStrategyViewCell.h"
#import "PublicClass.h"
@implementation topStrategyViewCell
-(instancetype)initWithFrame:(CGRect)frame{
    self = [super initWithFrame:frame];
    if (self) {
        [self load];
    }
    return self;
}
-(void)load{
    [self.contentView addSubview:self.phoneImage];
    [self.contentView addSubview:self.typeLabel];

}
-(UIImageView *)phoneImage{
    if (!_phoneImage) {
        _phoneImage = [[UIImageView alloc]initWithFrame:CGRectMake(ADAPTATION_WIDTH(5),ADAPTATION_HEIGHT(5) , ADAPTATION_WIDTH(70),ADAPTATION_WIDTH(70))];
//        _phoneImage.center = CGPointMake(self.contentView.center.x, self.contentView.center.y - 30 / H);
        _phoneImage.backgroundColor = [UIColor redColor];
        
    }
    return _phoneImage;
}
-(UILabel *)typeLabel{
    if (!_typeLabel) {
        _typeLabel = [[UILabel alloc]initWithFrame:CGRectMake(ADAPTATION_WIDTH(5), ADAPTATION_HEIGHT(75), ADAPTATION_WIDTH(70), ADAPTATION_HEIGHT(20))];
        _typeLabel.textColor = [UIColor blackColor];
        _typeLabel.backgroundColor = [UIColor blueColor];
        _typeLabel.textAlignment = NSTextAlignmentCenter;
        _typeLabel.font = [UIFont systemFontOfSize:15];
    }
    return _typeLabel;
}

@end
